powered by
bn.fit
grain
## S3 method for class 'grain': as.bn.fit(x) ## S3 method for class 'bn.fit': as.grain(x)
as.bn.fit
as.grain
library(gRain) a = bn.fit(hc(learning.test), learning.test) b = as.grain(a) c = as.bn.fit(b)
Run the code above in your browser using DataLab